//
//  MGTabPageTableView.h
//  Mango
//
//  Created by 胡超 on 2020/6/29.
//  Copyright © 2020 HuChao. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "MGTableView.h"
#import "MGTabPageView.h"
//#import "FXTabPageChildViewController.h"

NS_ASSUME_NONNULL_BEGIN

@protocol MGTabPageTableViewScrollDelegate <UIScrollViewDelegate>
- (void)scrollViewShouldUpdateNavigationBar:(CGFloat)rate;

@end

@interface MGTabPageTableView : MGTableView

@property (nonatomic,strong,readonly) MGTabPageView *pageView;

- (instancetype)initWithFrame:(CGRect)frame style:(UITableViewStyle)style;
- (instancetype)initWithFrame:(CGRect)frame style:(UITableViewStyle)style tabPageBarStyle:(nullable MGTabPageBarStyle *)tabPageBarStyle;
- (instancetype)initWithFrame:(CGRect)frame style:(UITableViewStyle)style topOffset:(CGFloat)topOffset;
- (instancetype)initWithFrame:(CGRect)frame style:(UITableViewStyle)style topOffset:(CGFloat)topOffset tabPageBarStyle:(nullable MGTabPageBarStyle *)tabPageBarStyle;

//- (void)setPages:(NSArray<NSString*> *)titles controllers:(NSArray<FXTabPageChildViewController *>*)controllers parent:(nullable UIViewController *)parent;
- (void)setPages:(NSArray *)pages titles:(NSArray<NSString*> *)titles parent:(nullable UIViewController *)parent;
- (void)removeAllPages;

@end

NS_ASSUME_NONNULL_END
